package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._23解释器模式._3乐谱解释;

//音速类
class Speed extends Expression {
    public void excute(String key, double value) {
        String speed;
        if (value < 500)
            speed = "快速";
        else if (value >= 1000)
            speed = "慢速";
        else
            speed = "中速";

        System.out.print(speed+" ");
    }
}
